import type { ArrangeInterview, InterviewInfoDto } from '@/types';
import request from '@/utils/request';

/**
 * 安排面试
 * @param interviewerInfo 
 * @returns 
 */
export const arrangeInterview = async (interviewerInfo: ArrangeInterview) => {
    const res = request.post('/interview/arrangeInterview',{
        ...interviewerInfo
    });
    return res;
}

/**
 * 获取面试信息
 * @param interviewInfoDto 
 * @returns 
 */
export const getInterviewInfo = async (interviewInfoDto: InterviewInfoDto) => {
    const res = await request.post('/interview/getInterviewInfo',{
        ...interviewInfoDto
    });
    return res.data;
}